 <%--
  *  File:    DoctorBatchModify.jsp
  *  @Author: KevinFan
  *  Date:    2011/11/8
  *
  *  Copyright (C) 2000 - 2012 Oval Technologies, Inc.
  *  All rights reserved.
  *
  *  This software is the confidential and proprietary information of Oval
  *  Technologies, Inc. ("Confidential Information").  You shall not
  *  disclose such Confidential Information and shall use it only in
  *  accordance with the terms of the license agreement you entered into
  *  with Oval.
 --%>
<%@ page import="java.text.DecimalFormat" %>
<%@ page import="java.lang.*" %>
<%@ page contentType = "text/html;charset=UTF-8" %>

 <%
   Category cat = Category.getInstance("jsp.DoctorBatchModify");
   String strModuleName = "DMS";
   String privilegeCode = "10Z08";
   String contextPath = request.getContextPath();
 %>
 <%@ include file="/inc/CommonHeader.inc" %>
 <%@ include file="/inc/OvalLocationDefault.inc" %>
 <%@ include file="/rpt/ReportURL.inc" %>
 <html>
 <iframe name="summaryfrm" scrolling="no" frameborder="0" style="position:absolute; top:0px; left:0px; display:none;border:#909eff 1px solid;"></iframe>
 <head>
 <title>DoctorBatchModify</title>
 <PageFlow:CheckPageFlow pageName="p_doctorbatchmodify"/>
 <%@ include file="/inc/CatchError.inc" %>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
 <script language="JavaScript" src="<%=contextPath %>/js/SummaryDivision.js"></script>
 <link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
 <script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
 <script language="JavaScript" src="<%=contextPath %>/js/Calendar.js"></script>
 <script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
 <script language="JavaScript" src="<%=contextPath %>/js/opal2/mootools.js"></script>
 <%@ include file="/inc/SummaryDivision.inc" %>
 <%@ include file="/inc/NewCalendar.inc" %>
 <%
 HashMap userinfo = (HashMap) session.getAttribute("userinfo");
 Vector totalsummary = (Vector)pageContext.getAttribute("totalsummary");
 if(totalsummary == null)totalsummary = new Vector(); 
 %>
<script>
function page_summary(actionvalue,orderbyname)
{
  var editform = summaryPrepare(cform,actionvalue,orderbyname);
  if(!editform) return;
  editform.action = "DoctorBatchModify.jsp?<%= OvalTools.randomURL() %>";
  editform.target = "_self";
  isRunning = true;
  editform.submit();
}

function page_save(){
  if(!checkForm(document.cform))return;
  cform.issearch.value = 1;
  page_summary('search');
}
 
function page_allcheckselect(){
	var allcheck = cform.allcheck.checked;
	var alldatafile = document.getElementsByName('deleteids');
	var length = alldatafile.length;
	if(allcheck){
		for(var i = 1 ; i <= length;i++){
			if(!alldatafile[i-1].disabled){
			alldatafile[i-1].checked = true;}
		}
	}else{
		for(var i = 1 ; i <= length;i++){
			alldatafile[i-1].checked = false;
		}	
	}
}
</script>
 </head>
 <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 <iframe id="reloadHandler" name="reloadHandler" style="display:none"></iframe>
 <form name="cform" method="post" action="<%=contextPath %>/Dispatcher"> 
	<input type="hidden" name="pagename" value="p_doctorbatchmodify">
    <input type="hidden" name="actionname"/>
	<input type="hidden" name="issearch"/>
	<input type="hidden" name="maker" value="<custom:write property="userid" name="userinfo" scope="session"/>"/>
 <%-- page location --%>
   <%@ include file="/inc/PageLocation.inc" %>
	   <table width="100%" cellspacing="0" cellpadding="0" border="0">
		<tr>
             <td>
				 <table width="100%" cellspacing="5" cellpadding="0" border="0" onkeydown="if(event.keyCode==13) page_summary('search');">
					   <tr>
						 <td class="td_right" width="5%"><%= "医生代码" + label.getLabelName("L_Colon") %></td>
                         <td class="td_left" width="12%">
                             <custom:text property="serdoctorcode" size="18"/>
                         </td>
                         <td class="td_right" width="5%"><%="医生名称" +  label.getLabelName("L_Colon") %></td>
						 <td class="td_left" width="12%%">
							<custom:text property="serdoctorname" size="18"/>
						 </td> 
                         <td class="td_right" width="5%"><%= "医院代码" + label.getLabelName("L_Colon") %></font></td>
                         <td class="td_left" width="12%">
                            <custom:text property="serhospitalcode" size="18"/>
                         </td>			 
						 <td class="td_right" width="5%"><%= "医院名称" + label.getLabelName("L_Colon") %></td>
                         <td class="td_left" width="*">
							<custom:text property="serhospitalname" size="18"/>
						 </td> 
                       </tr>
<%-----------------------第二行---------------------%>
                       <tr>
                         <td class="td_right"><%= "所属部门" + label.getLabelName("L_Colon") %></td>
                         <td class="td_left">
                            <custom:text property="serhosdept" size="18"/>
						 <td class="td_right"><%= "区域代码" + label.getLabelName("L_Colon") %></td>
                         <td class="td_left">
							 <custom:text property="serareacode" size="18"/>
                         </td>
						 <td class="td_right"><%="区域名称" +  label.getLabelName("L_Colon") %></td>
						 <td class="td_left" colspan="6">
							<custom:text property="serareaname" size="18"/>
							<a href="javascript:page_summary('search')"><img src="/oval/images/cn/go.gif" border="0" ></a>
						 </td>
                       </tr>
                 </table>
              </td>
           </tr>        
           <tr>
             <td colspan="2">
			  <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
                 <tr class="deepblue-left">
                   <td class="title_center" width="1%"><input type="checkbox" name="allcheck" class="normalradio" onclick="page_allcheckselect();"></td>
				   <td class="title_center" width="3%">序号</td>
                   <td class="title_center"><a href="javascript:page_summary('orderby','doctorcode')">医生代码</a></td>
                   <td class="title_center"><a href="javascript:page_summary('orderby','doctorname')">医生名称</a></td>
                   <td class="title_center"><a href="javascript:page_summary('orderby','orgcode')">医院代码</a></td>
                   <td class="title_center"><a href="javascript:page_summary('orderby','orgname')">医院名称</a></td>
                   <td class="title_center"><a href="javascript:page_summary('orderby','deptname')">科室</a></td>
                   <!--<td class="title_center"><a href="javascript:page_summary('orderby','areacode')">区域代码</a></td>
                   <td class="title_center"><a href="javascript:page_summary('orderby','areaname')">区域名称</a></td>-->
                 </tr> 
				 <%
                        String strClassType="";
                        int i = 0;
						HashMap hash = null; 
						String strVal = "";
                 %>
				 <logic:iterate id="onedetail" collection="<%= totalsummary %>" >
                 <%//show different colours in turns
                     if(i%2 == 1)
                         {
                             strClassType = "td-listrom";
                         }else{
                             strClassType = "none";
                         }
                     i++;
                 %>
					<tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%= strClassType %>'"   class="<%= strClassType %>">
                         <td class="title_center"><input id="deleteids<%=JspHelper.filterNull(i)%>" name="deleteids" type="checkbox" value="<custom:write name="onedetail" property="doctorid"/>" class="normalradio"></td>
						 <td><%=i %></td>
						 <td><custom:write name="onedetail" property="doctorcode" nbsp="true"/></td>
                         <td><custom:write name="onedetail" property="doctorname" nbsp="true"/></td>
                         <td><custom:write name="onedetail" property="orgcode" nbsp="true"/></td>
                         <td><custom:write name="onedetail" property="orgname" nbsp="true"/></td>
                         <td><custom:write name="onedetail" property="deptname" nbsp="true"/></td>
                         <!--<td><custom:write name="onedetail" property="areacode" nbsp="true"/></td>
                         <td><custom:write name="onedetail" property="areaname" nbsp="true"/></td>-->
                     </tr>
				 </logic:iterate>
                 <%@ include file="/inc/SummaryAction.inc" %>
		</table>
		</td>
	</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
		<tr>
             <td colspan="2">
				 <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="1">
					   <tr> 
							<td colspan="4" class="deepblue-left"><img src="<%=contextPath %>/images/cn/quote.gif"><%= "批次更新" + label.getLabelName("L_Colon") %></td>
					   </tr>
					   <tr>
                         <td class="need" width="40%"><%= "产品组" + label.getLabelName("L_Colon") %></td>
                         <td width="60%">
                            <custom:select optionInnerTextKey="productgroupname" optionsName="allpgroups" optionValueKey="productgroupid" property="productgroupid" defaultValue="----------" command='notnull' label='L_ProductGroupName' defaultValueCost="-1"/></td> 
                         </td>
					   </tr>
                 </table>
			</td>
		</tr>
	</table>
		<table width="100%" cellspacing="0">
	<tr>
        <td class="td_center">
			<custom:button type="1" label="L_BatchEdit" imgsrc="Modify.gif" border="0" onclick="page_save();" style="width:70"/>
        </td>
    </tr>
</table>
</form>	
</body>
</html>


